package cn.scw.project.facility.mapper;

import cn.scw.project.facility.domain.FacFacilityRepairs;
import cn.scw.project.facility.domain.netework.bean.FacFacilityRepairsListReq;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 设备报修Mapper接口
 *
 * @author api
 * @date 2020-05-20
 */
public interface FacFacilityRepairsMapper {
    /**
     * 查询设备报修
     *
     * @param id 设备报修ID
     * @return 设备报修
     */
    public FacFacilityRepairs selectFacFacilityRepairsById(Long id);

    /**
     * 查询设备报修列表
     *
     * @param req 设备报修
     * @return 设备报修集合
     */
    public List<FacFacilityRepairs> selectFacFacilityRepairsList(FacFacilityRepairsListReq req);

    List<FacFacilityRepairs> selectFacFacilityRepairsListByUserId(@Param("userId") Long userId, @Param("isSolve") Boolean isSolve);

    /**
     * 新增设备报修
     *
     * @param facFacilityRepairs 设备报修
     * @return 结果
     */
    public int insertFacFacilityRepairs(FacFacilityRepairs facFacilityRepairs);

    /**
     * 修改设备报修
     *
     * @param facFacilityRepairs 设备报修
     * @return 结果
     */
    public int updateFacFacilityRepairs(FacFacilityRepairs facFacilityRepairs);

    /**
     * 删除设备报修
     *
     * @param id 设备报修ID
     * @return 结果
     */
    public int deleteFacFacilityRepairsById(Long id);

    /**
     * 批量删除设备报修
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteFacFacilityRepairsByIds(Long[] ids);

}
